home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-08-10 | 3.2 KB | 95 lines | [TEXT/MPS ] |
- #
- # File: About MPW InForm
- #
- # Contains: xxx put contents here xxx
- #
- # Written by: G. Sawitzki, StatLab Heidelberg
- #
- # Copyright: © 1991 by G. Sawitzki, Heidelberg, all rights reserved.
- #
- # Change History (most recent first):
- #
- # <4> 8/10/91 gs add std mode
- # <4> 8/10/91 gs add std mode
- # <3> 8/8/91 gs add -f option
- # <2> 8/5/91 gs 3.49 changes. -a and -f are changed
- # <1> 8/2/91 gs first checked in
- #
- # To Do:
- #
-
- This is InForm 3.49
- InForm is an MPW tool that allows you to reformat Pascal
- source files, to build abstracts, and to build crossreference
- lists.
- It is quicker and smaller than the tools provided with MPW.
- And It is fail-safe in that it does not suppose that your
- program is syntactically correct (in contrast to Pasmat,
- Pasref etc. InForm even allows yout to reformat sources in
- place: it can operate on windows and even on selections.
-
- This version does not yet support markers.
-
-
- This will add a menu entry to call InForm on the active window:
-
- AddMenu edit 'InForm/I' 'InForm "{active}"'
-
- # Usage: inform [options] ([target window] | [-from file] [-to file]
-
- Here is the MPW.Help-info for InForm
-
- InForm [option…] [window] > abstract/crossref ≥ messages
- -a <style> # write abstract to default output
- # valid abstract styles are STD, IM and 411
- -caps # put reserved words to capslock
- -ccol column # align trailing comments to column / to come…
- -cross # write crossreferences to default output
- -from sourcefile # read source from file. selections are ignored
- -f <style> # define formatting style
- # valid abstract styles are STD
- -p # write progress information to diagnostic
- -to targetfile # write formated source to file.
- -w width # set output line width (default 128) / to come…
- -
- This is the info line to add to the commands list in mpw.help:
-
- InForm # format and analyze pascal programs
-
- Inform is n o t in the public domain. It is copyrighted, with all rights
- reserved.
- The recent version, with full options and documentatin, is available at $29 for
- disk and handling from
- G. Sawitzki, Römerstr. 38, D 6900 Heidelberg, W. Germany.
-
- Please send bug reports, comments etc to
- gs@statlab.uni-heidelberg.de on Internet
- or
- GER.XUU0003 on AppleLink
-
- To see some possibilities of inform, use the following lines, and inspect the
- resulting windows:
-
- (
- set mytest xxxxx.p ### <----- replace xxxxx.p by any of your pascal programs
- target "{mytest}"
- # example 1: formatting only
- inform -from "{mytest}" -to "{mytest}".informed && target "{mytest}".informed
- # example 2: abstract only
- inform -a IM -from "{mytest}" > "{mytest}".abstract && target "{mytest}".abstract
- # example 2.1: abstract only. Standard style
- inform -a STD -from "{mytest}" > "{mytest}".abstract && target "{mytest}".abstract.std
- # example 3: crossreference only
- inform -cross -from "{mytest}" > "{mytest}".cross && target "{mytest}".cross
- ### Introduce some bogus bus affecting the control structure (e.g. delete some 'end')
- ### and run the following line
- # example 4: diagnostics
- inform -p -from "{mytest}" -to "{mytest}".informed.bug ∂
- ≥ "{mytest}".informed.bug.report ∂
- && (target "{mytest}".informed.bug.report;target "{mytest}".informed.bug)
- stackwindows
- unset mytest
-
- )
-
-